package com.cocoiko.utils;

import android.graphics.Bitmap;

public class CocoikoAccount {
	String id = "";
	String token = "";
	String name = "";
	String gender = "";
	String birthday = "";
	String avatar_url = "";
	Bitmap avatar = null;
	String email = "";
	String password = "";
	String introduce = "";
	boolean isOnTwitter = false;
	boolean isOnFacebook = false;
	boolean isLeadNotice = false;
	boolean isFollowNotice = false;
	boolean isLeadMail = false;
	boolean isFollowMail = false;

	public int following_count;
	public int follower_count;
	public int cocoiko_count;
	public int points;
	public int twitter_id;
	public int facebook_id;
	
	boolean isfollowed;
	boolean isblocked;
	
	public CocoikoAccount() {

	}

	public int getFollowing_count() {
		return following_count;
	}

	public void setFollowing_count(int following_count) {
		this.following_count = following_count;
	}

	public int getFollower_count() {
		return follower_count;
	}

	public void setFollower_count(int follower_count) {
		this.follower_count = follower_count;
	}

	public int getCocoiko_count() {
		return cocoiko_count;
	}

	public void setCocoiko_count(int cocoiko_count) {
		this.cocoiko_count = cocoiko_count;
	}

	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public int getTwitter_id() {
		return twitter_id;
	}

	public void setTwitter_id(int twitter_id) {
		this.twitter_id = twitter_id;
	}

	public int getFacebook_id() {
		return facebook_id;
	}

	public void setFacebook_id(int facebook_id) {
		this.facebook_id = facebook_id;
	}

	public boolean isIsfollowed() {
		return isfollowed;
	}

	public void setIsfollowed(boolean isfollowed) {
		this.isfollowed = isfollowed;
	}

	public boolean isIsblocked() {
		return isblocked;
	}

	public void setIsblocked(boolean isblocked) {
		this.isblocked = isblocked;
	}

	public String getId() {
		return id;
	}

	public Bitmap getAvatar() {
		return avatar;
	}

	public void setAvatar(Bitmap avatar) {
		this.avatar = avatar;
		this.avatar_url = CocoikoUtils.saveBitmap(avatar);

	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public int getGenderInt() {
		if (!gender.equals("")) {
			if (gender.equals("male"))
				return 1;
		}
		return 0;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}
	
	public void setGender(int gen){
		if(gen == 1)
			gender = "male";
		else
			gender = "female";
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getAvatar_url() {
		return avatar_url;
	}

	public void setAvatar_url(String avatar_url) {
		this.avatar_url = avatar_url;
		this.avatar = CocoikoUtils.loadBitmap(avatar_url);
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	public boolean isOnTwitter() {
		return isOnTwitter;
	}

	public void setOnTwitter(boolean isOnTwitter) {
		this.isOnTwitter = isOnTwitter;
	}

	public boolean isOnFacebook() {
		return isOnFacebook;
	}

	public void setOnFacebook(boolean isOnFacebook) {
		this.isOnFacebook = isOnFacebook;
	}

	public boolean isLeadNotice() {
		return isLeadNotice;
	}

	public void setLeadNotice(boolean isLeadNotice) {
		this.isLeadNotice = isLeadNotice;
	}

	public boolean isFollowNotice() {
		return isFollowNotice;
	}

	public void setFollowNotice(boolean isFollowNotice) {
		this.isFollowNotice = isFollowNotice;
	}

	public boolean isLeadMail() {
		return isLeadMail;
	}

	public void setLeadMail(boolean isLeadMail) {
		this.isLeadMail = isLeadMail;
	}

	public boolean isFollowMail() {
		return isFollowMail;
	}

	public void setFollowMail(boolean isFollowMail) {
		this.isFollowMail = isFollowMail;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
}
